package com.lecampus.businessCampus_moments.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class ArticleVO {

    @JsonProperty("id")
    private String id;

    @JsonProperty("title")
    private String title;

    @JsonProperty("content")
    private String content;

    @JsonProperty("browse")
    private Long browse;

    @JsonProperty("like_sum")
    private Long likeSum;

    @JsonProperty("comment_sum")
    private Long commentSum;

    @JsonProperty("user_name")
    private String userName;

    @JsonProperty("image_url")
    private String imageUrl;

    @JsonProperty("article_imageList")
    private List<ArticleImageVO> articleImageVOList;

    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;
}
